package com.macro.mall.es.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class DocSaveDto {
    @NotNull(message = "文档名字不能为空")
    private String indexName;

    private List<Map<String,Object>> datas;

    //主键id标识字段
    @NotNull(message = "主键id标识字段不能为空")
    private String idField;
}
